The ARexx port

TMLG has an ARexx-port for use from external scripts. The port is named "TMLG_PORT".

List of commands

GET HIDE POPUP BUFFERUSED OPENSETTINGS
CANCELSETTINGS SAVESETTINGS USESETTINGS SETSETTING QUERYSETTING
QUIT MAINSIZE VOLUME QUERYTAGINFO SETTAGMODE
SEEK PLAYLIST PREV PLAY NEXT
STOP PAUSE CONTINUE SELECT QUERYSELECTED
MOVESELECTED REMOVESELECTED REPLACESELECTED OPENWINDOW CLOSEWINDOW
HIDDENWINDOW REGNAME SETBUFSIZE GETBUFSIZE LOCKGUI
UNLOCKGUI PLUGIN


GET

Get some special attribute from TMLG.
Options:
  • COMMANDLIST/S
    Get a list with all the arexx-commands of TMLG.
  • AUTHOR/S
    Who is the author of TMLG?
  • COPYRIGHT/S
    Who got the copyrights?
  • VERSION/S
    What version of TMLG is this?
  • LASTERROR/S
    What was the last error?

HIDE

Hide TMLG. This acts as if the menuitem "hide" has been selected.

POPUP

Show TMLG as before it was hidden.

BUFFERUSED

Returns how much of the audiobuffer is in use at the current time. Takes a number as argument, which is used for "scaling" the result.
i.e. 'BUFFERUSED 100' returns the bufferusage in percent.

OPENSETTINGS

Open a config-file. Returns 0 if unsuccessful. By default it will try to open the default settings. No settings take effekt until 'USESETTINGS' has been called though.
Options:
  • FROM/K
    Used to specify some other config-file than the default.

CANCELSETTINGS

If some settings has been changed, this can be used to cancel those settings.

SAVESETTINGS

Save settings. If some settings has been changed, but not used yet, it will save the changed settings. By default it'll save as the default settings.
Options:
  • AS/K
    Specify name to save the settings as.

USESETTINGS

Use the current settings as set.

SETSETTING

Change some setting. Most won't take effekt until 'USESETTINGS' has been called. The exception is those concerning pugins.
Options:
  • PLAYLISTPATH/S
  • SONGPATH/S
  • L3FORCEMONO/S
  • L3SDIVISION/S
  • L3SQUALITY/S
  • L3MDIVISION/S
  • L3MQUALITY/S
  • L2FORCEMONO/S
  • L2SDIVISION/S
  • L2SQUALITY/S
  • L2MDIVISION/S
  • L2MQUALITY/S
  • MAXENABLE/S
  • MAXFREQ/S
  • MIXINGENABLE/S
  • MIXINGFREQ/S
  • AHIMODE/S
  • BIGMAINSIZE/S
  • PAUSEKEY/S
  • STOPKEY/S
  • FORWARDKEY/S
  • PLAYKEY/S
  • REWINDKEY/S
  • POPUPKEY/S
  • IOBUFFER/S
  • PREDECODE/S
  • AUDIOBUFFER/S
  • MAINPRIORITY/S
  • PLAYPRIORITY/S
  • REPEATLIST/S
  • RANDOMPLAY/S
  • QUICKPLAY/S
  • PLAYLIST/S

QUERYSETTING

Return the status of some setting. If some settings has been changed, but not used yet, it will not be the changed settings.
Options:
  • PLAYLISTPATH/S
  • SONGPATH/S
  • L3FORCEMONO/S
  • L3SDIVISION/S
  • L3SQUALITY/S
  • L3MDIVISION/S
  • L3MQUALITY/S
  • L2FORCEMONO/S
  • L2SDIVISION/S
  • L2SQUALITY/S
  • L2MDIVISION/S
  • L2MQUALITY/S
  • MAXENABLE/S
  • MAXFREQ/S
  • MIXINGENABLE/S
  • MIXINGFREQ/S
  • AHIMODE/S
  • BIGMAINSIZE/S
  • PAUSEKEY/S
  • STOPKEY/S
  • FORWARDKEY/S
  • PLAYKEY/S
  • REWINDKEY/S
  • POPUPKEY/S
  • IOBUFFER/S
  • PREDECODE/S
  • AUDIOBUFFER/S
  • MAINPRIORITY/S
  • PLAYPRIORITY/S
  • REPEATLIST/S
  • RANDOMPLAY/S
  • QUICKPLAY/S
  • PLAYLIST/S

QUIT

Quit TMLG. There are no regrets!

MAINSIZE

Change the size of TMLG's main-window. Give '0' as argument if TMLG is to be as small as possible.

VOLUME

Set playing volume. Argument must be between 0 and 100.

QUERYTAGINFO

Well, return some tag information.

SETTAGMODE

Make the tag display show some tag information.

SEEK

Seek a number of seconds from the beginning into the current playing (or paused) song. If paused the song will begin to play.

PLAYLIST

Manipulate/ask the playlist
Options:
  • ENTRIES/S
    Return the number of entries in the playlist.
  • SORT/S
    Sort the playlist.
  • ADDSONG/S
    Add a song to the playlist. Full path must be given.
  • CLEAR/S
    Clear the playlist.
  • OPEN/S
    Open a new playlist. Path must be given.
  • SAVE/S
    Save the playlist as...
  • NAME/K

PREV

Play previous song, or random if selected.

PLAY

Play a song. If no options is given, play the currently selected song on the playlist.
Options:
  • NAME/K
    Plays a song not on the playlist, given a full path.
  • NUMBER/K/N
    Play specific song from the playlist.
  • NEXT/S
    Play the next song from the playlist.
  • PREV/S
    Play the previous song from the playlist.
  • RANDOM/S
    Play a randomly selected song from the playlist.

NEXT

Play next song, or random if selected.

STOP

Stop playing.

PAUSE

Pause song if playing.

CONTINUE

Continue song if paused.

SELECT

Select a song on the playlist, but don't "PLAY" it.
Options:
  • NEXT/S
  • PREV/S
  • RANDOM/S
  • NUMBER/K/N

QUERYSELECTED

Ask for some attribute from the selected song.
Options:
  • PLAYED/S
    Has this song been played.
  • PATH/S
    Full path for this song.
  • LABEL/S
    Song Label.
  • NUMBER/S
    Song number on the list.

MOVESELECTED

Move the selected song up or down in the playlist.
Options:
  • DOWN/S
  • UP/S

REMOVESELECTED

Remove the selected song from the playlist.

REPLACESELECTED

Replace the selected song with another. Full path must be given.

OPENWINDOW

Open one of TMLG's windows.
Options:
  • ABOUT/S
  • SETTINGS/S
  • PLAYLIST/S
  • MAIN/S

CLOSEWINDOW

Close one of TMLG's windows.
Options:
  • ABOUT/S
  • SETTINGS/S
  • PLAYLIST/S
  • MAIN/S

HIDDENWINDOW

Ask if one of TMLG's windows is hidden/closed.
Options:
  • ABOUT/S
  • SETTINGS/S
  • PLAYLIST/S
  • MAIN/S

REGNAME

To whom is this key registered, or NONE!

SETBUFSIZE

Set the size of TMLG's audiobuffer in KBytes.

GETBUFSIZE

How big is the audiobuffer.

LOCKGUI

Lock TMLG's gui. This call nests!

UNLOCKGUI

Unlock the qui.

PLUGIN

Ask or manipulate the plugin system.
Options:
  • ENTRIES/S
    How many plugins are installed.
  • ADD/S
    Install a plugin. Full path must be given.
  • HIDE/S
    Hide a plugins gui. The plugin number must be given.
  • SHOW/S
    Show a plugins gui. The plugin number must be given.
  • REMOVE/S
    Remove a plugin. The plugin number must be given.
  • GETNAME/S
    Get the name of a plugin. The plugin number must be given.
  • HIDDEN/S
    Is a plugins gui hidden? The plugin number must be given.